import request from '@/utils/request'

/**
 * 司机列表
 */
export function getList(data) {
	return request({
		url: `/app/driver/list`,
		method: 'post',
		data: data
	})
}

// 查询司机信息列表
export function listDriver(query) {
  return request({
    url: '/bpmdriver/driver/list',
    method: 'get',
    params: query
  })
}

// 查询司机信息详细
export function getDriver(id) {
  return request({
    url: '/bpmdriver/driver/' + id,
    method: 'get'
  })
}

// 新增司机信息
export function addDriver(data) {
  return request({
    url: '/bpmdriver/driver',
    method: 'post',
    data: data
  })
}

// 修改司机信息
export function updateDriver(data) {
  return request({
    url: '/bpmdriver/driver',
    method: 'put',
    data: data
  })
}

// 删除司机信息
export function delDriver(id) {
  return request({
    url: '/bpmdriver/driver/' + id,
    method: 'delete'
  })
}
// 查询司机下拉树结构
export function driverTreeSelect() {
  return request({
    url: '/bpmdriver/driver/driverTreeSelect',
    method: 'get'
  })
}

